package com.yami.shop.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yami.shop.bean.model.RedPacketRecord;
import com.yami.shop.dao.RedPacketRecordMapper;
import com.yami.shop.service.RedPacketRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class RedPacketRecordServiceImpl extends ServiceImpl<RedPacketRecordMapper, RedPacketRecord> implements RedPacketRecordService {

    @Autowired
    private RedPacketRecordMapper redPacketRecordMapper;

    @Override
    public double getRecordSum(Long redPacketId) {

        return redPacketRecordMapper.getRecordSum(redPacketId);
    }
}
